
import React from 'react'
import KLine from '../../components/KLine/KLine';
import _req from '../../utils/request';

import { Uploader, UploaderValueItem } from 'react-vant'
import config from '../../utils/GlobalConfig';
import { update } from 'js-md5';


export default function Hello() {
  const defaultValue: UploaderValueItem[] | undefined = [
    
  ]

function clickBtn(){
  _req.post({
    module: "Content",
    interface: 70000,
  }).then(res =>{
    console.log(res);
    
  })
  
}
 function update(e: any){
  console.log(e,'e');
  
}
 

  return (
    <>
    <Uploader
      accept='*'
      defaultValue={defaultValue}
      upload={(file)=>_req.upload(file,update) }
    />
    <div style={{marginTop:'100px'}} onClick={clickBtn}>
      <button>click</button>
    </div>
    </>
  )

}
